import { http } from "@/utils/request";
import type { BaseDataConfigEntityRes } from "@/interface/pm/baseFieldManagement.ts";

export const getDetailByTargetType = (
  targetType: string,
): Promise<BaseDataConfigEntityRes> => {
  return http.get(`/baseDataConfigEntity/getByTargetType/${targetType}`);
};

export const updateBaseField = (data: BaseDataConfigEntityRes) => {
  return http.put(`/baseDataConfigEntity/edit`, data);
};
